#include "engine.h"
#include "renderer/opengl.h"




IR_Engine::IR_Engine()
{
	device = NULL;
}

IR_Engine::~IR_Engine()
{

}

bool	IR_Engine::Create(HWND hwnd, int width, int height)
{
	COpenGL *opengl = new COpenGL;
	opengl->Create(hwnd);
	device = opengl;

	screen_width = width;
	screen_height = width;

	return true;
}

void	IR_Engine::Destroy()
{
	if( device )	
	{
		delete device;
		device = NULL;
	}
}



void	IR_Engine::Update(float dt)
{

}

void	IR_Engine::Render()
{
	device->Clear();


	device->Render();


	device->Present();
}